Lesson 0010 · ~12 min
Logits, softmax, and sampling
Core idea: The model produces logits, softmax turns them into probabilities, and decoding picks the next token.
What to remember
- Logits are raw scores.
- Softmax converts the whole set of logits into a probability distribution.
- Sampling settings affect output variation without changing the model’s weights.
Why it matters
This is where output style, determinism, and variety come from.
Mental model
Representation → logits → probabilities → decoding choice → next token.
Checkpoint
- What is a logit?
- What does softmax do?
- Why can the same prompt produce different outputs?